//
//  AFNet.h
//  基于AF封装网络请求网络判断
//
//  Created by dlios on 15/6/6.
//  Copyright (c) 2015年 SJF1992. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AFNetworking.h"
typedef void(^myBlock)(id result);


@interface AFNet : NSObject

@property (nonatomic, copy) myBlock netblock;

#pragma mark- 网络请求GET
- (void)getUlr:(NSString *)url parameters:(NSDictionary *)param finishBolck:(myBlock)block;

+ (void)connectNetGetDataWithURLString:(NSString *)urlStr parameters:(NSDictionary *)parameters  finishblock:(myBlock)block;

#pragma mark- 网络请求POST
- (void)postUlr:(NSString *)url parameters:(NSDictionary *)param finishBolck:(myBlock)block;
+ (void)connectNetPostDataWithURLString:(NSString *)urlStr parameters:(NSDictionary *)parameters  finishblock:(myBlock)block;


#pragma mark- 网络判断
- (void)getReachbility;


@end
